package com.pyk.mapper;

import com.pyk.entity.Question;
import com.pyk.entity.QuestionType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface QuestionMapper {

    int insert(Question question);

    void updateById(Question question);

    void deleteById(Long id);

    @Select("select * from questions where question_id=#{id}")
    Question selectById(Long id);

    List<Question> selectAll(Question question);



}
